/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

//FREAKING MERCURIAL! abort: error: An existing connection was forcibly closed by the remote host
package data;

import java.util.LinkedList;

/**
 *
 * @author Stratos
 */
public class Metro {
    LinkedList<Station> redLine;
    Station redLineStart;
    Station redLineEnd;
    
    public Metro() {
        constructRedLine();
    }
    
    private void constructRedLine() {
        redLine = new LinkedList();
        Station s = new Station("Άγιος Αντώνιος", 4);
        this.redLineStart = s;
        redLine.add(s);
        s = new Station("Σεπόλια", 4);
        redLine.add(s);
        s = new Station("Αττική", 4);
        redLine.add(s);
        s = new Station("Σταθμός Λαρίσης", 4);
        redLine.add(s);
        s = new Station("Μεταξουργίο", 4);
        redLine.add(s);
    }
    
    public void printMap() {
        System.out.println(redLine.toString());
    }
  
    public LinkedList<Station> getRedLine() {
        return redLine;
    }
    
    
}
